﻿package plugin.component.view.enum
{

    public class ActionType extends Object
    {
        public static const STAND:int = 1;
        public static const SHOWSTAND:int = 99;
        public static const WALK:int = 2;
        public static const RUN:int = 3;
        public static const ATTACK:int = 4;
        public static const ATTACK_SPECIAL:int = 5;
        public static const SIT_STAND:int = 6;
        public static const SIT_WALK:int = 7;
        public static const SIT_RUN:int = 8;
        public static const MINING:int = 9;
        public static const HURT:int = 12;
        public static const DIE:int = 10;
        public static const BATTLE_STAND:int = 11;
        public static const FLY:int = 13;
        public static const JUMP:int = 14;
        public static const YITIAN:int = 15;
        public static const SPECIAL_1:int = 100;
        public static const SPECIAL_2:int = 101;

        public function ActionType()
        {
            return;
        }// end function

        public static function actionStringToInt(param1:String) : int
        {
            var _loc_2:int = 0;
            switch(param1)
            {
                case "stand":
                {
                    _loc_2 = ActionType.STAND;
                    break;
                }
                case "battleStand":
                {
                    _loc_2 = ActionType.BATTLE_STAND;
                    break;
                }
                case "walk":
                {
                    _loc_2 = ActionType.WALK;
                    break;
                }
                case "run":
                {
                    _loc_2 = ActionType.RUN;
                    break;
                }
                case "attack":
                {
                    _loc_2 = ActionType.ATTACK;
                    break;
                }
                case "attack2":
                {
                    _loc_2 = ActionType.ATTACK_SPECIAL;
                    break;
                }
                case "beattack":
                {
                    _loc_2 = ActionType.HURT;
                    break;
                }
                case "die":
                {
                    _loc_2 = ActionType.DIE;
                    break;
                }
                case "sit":
                {
                    _loc_2 = ActionType.SIT_STAND;
                    break;
                }
                case "sitRun":
                {
                    _loc_2 = ActionType.SIT_RUN;
                    break;
                }
                case "mining":
                {
                    _loc_2 = ActionType.MINING;
                    break;
                }
                case "fly":
                {
                    _loc_2 = ActionType.FLY;
                    break;
                }
                case "jump":
                {
                    _loc_2 = ActionType.JUMP;
                    break;
                }
                case "yitian":
                {
                    _loc_2 = ActionType.YITIAN;
                    break;
                }
                case "showStand":
                {
                    _loc_2 = ActionType.SHOWSTAND;
                    break;
                }
                default:
                {
                    break;
                }
            }
            return _loc_2;
        }// end function

        public static function typeToString(param1:int) : String
        {
            var _loc_2:String = "";
            switch(param1)
            {
                case ActionType.STAND:
                {
                    _loc_2 = "stand";
                    break;
                }
                case ActionType.SHOWSTAND:
                {
                    _loc_2 = "showStand";
                    break;
                }
                case ActionType.BATTLE_STAND:
                {
                    _loc_2 = "battleStand";
                    break;
                }
                case ActionType.WALK:
                {
                    _loc_2 = "walk";
                    break;
                }
                case ActionType.RUN:
                {
                    _loc_2 = "run";
                    break;
                }
                case ActionType.ATTACK:
                {
                    _loc_2 = "attack";
                    break;
                }
                case ActionType.ATTACK_SPECIAL:
                {
                    _loc_2 = "attack2";
                    break;
                }
                case ActionType.HURT:
                {
                    _loc_2 = "beattack";
                    break;
                }
                case ActionType.DIE:
                {
                    _loc_2 = "die";
                    break;
                }
                case ActionType.SIT_STAND:
                {
                    _loc_2 = "sit";
                    break;
                }
                case ActionType.SIT_RUN:
                {
                    _loc_2 = "sitRun";
                    break;
                }
                case ActionType.MINING:
                {
                    _loc_2 = "mining";
                    break;
                }
                case ActionType.FLY:
                {
                    _loc_2 = "fly";
                    break;
                }
                case ActionType.JUMP:
                {
                    _loc_2 = "jump";
                    break;
                }
                case ActionType.YITIAN:
                {
                    _loc_2 = "yitian";
                    break;
                }
                default:
                {
                    break;
                }
            }
            return _loc_2;
        }// end function

    }
}
